﻿using FB.Membership.Annotations;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;

namespace FB.Security.FBBH
{

    public enum Menu : int
    {
        [Description("客户管理")]
        ClientManagement = 1000,
        [Description("申请保函")]
        GuardApplay = 1010,
        [Description("保函部审批")]
        GuardDeptApprove = 1020,
        [Description("财务部审批")]
        FinanceDeptApprove = 1030      
    }



    #region 客户管理
    [SecurityFlag((int)Menu.ClientManagement)]
    public enum ClientManagement : long
    {
        [Description("查看")]
        View = 1,
        [Description("添加")]
        Create = 2,
        [Description("修改")]
        Modify = 4,
        [Description("删除")]
        Delete = 8

    }
    #endregion

    #region 申请保函
    [SecurityFlag((int)Menu.GuardApplay)]
    public enum GuardApplay : long
    {
        [Description("查看")]
        View = 1,
        [Description("添加")]
        Create = 2,
        [Description("修改")]
        Modify = 4,
        [Description("删除")]
        Delete = 8,
        [Description("上传")]
        Upload = 16

    }
    #endregion

    #region 保函部审批
    [SecurityFlag((int)Menu.GuardDeptApprove)]
    public enum GuardDeptApprove : long
    {
        [Description("查看")]
        View = 1,     
        [Description("确认")]
        Ensure = 2,
        [Description("打印")]
        Print = 4,      
        [Description("退回")]
        Back = 8

    }
    #endregion

    #region 财务部审批
    [SecurityFlag((int)Menu.FinanceDeptApprove)]
    public enum FinanceDeptApprove : long
    {
        [Description("查看")]
        View = 1,
        [Description("确认")]
        Ensure = 2,
        [Description("提交收费")]
        SubmitFee = 4
    }
    #endregion
}
